package com.example.tictactoe;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import com.example.tictactoe.*;





public class Game_Room extends Activity implements OnClickListener
{
	public void onCreate(Bundle savedInstanceState) {
	      super.onCreate(savedInstanceState);
	      setContentView(R.layout.game_room);
	     
	      Button createnewgame=(Button)this.findViewById(R.id.createnewgameroom);
	      createnewgame.setOnClickListener((OnClickListener) this);
	      
	      Button joingameroom=(Button)this.findViewById(R.id.joingameroom);
	      joingameroom.setOnClickListener((OnClickListener) this);
	      
	      Button leaderboard=(Button)this.findViewById(R.id.leaderboard);
	      leaderboard.setOnClickListener((OnClickListener) this);
	}
	
	public void onClick(View v)
	{
		if (v.getId()==R.id.createnewgameroom)
		{
			Intent intent= new Intent(this,New_Room.class);
			startActivity(intent);
			
		}
		if (v.getId()==R.id.joingameroom)
		{
			Intent intent=new Intent(this,RoomList.class);
			startActivity(intent);
		}
		
		if (v.getId()==R.id.leaderboard)
		{
			Intent intent=new Intent(this,Leaderboard.class);
			startActivity(intent);
		}
		
	}

	

	
	      
	
}